package cn.stylefeng.guns.modular.basic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.basic.entity.StoreAccount;
import cn.stylefeng.guns.modular.basic.model.params.StoreAccountParam;
import cn.stylefeng.guns.modular.basic.model.result.StoreAccountResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 门店账户 服务类
 * </p>
 *
 * @author wp
 * @since 2025-08-27
 */
public interface StoreAccountService extends IService<StoreAccount> {

    /**
     * 新增
     *
     * @author wp
     * @Date 2025-08-27
     */
    void add(StoreAccountParam param);

    /**
     * 删除
     *
     * @author wp
     * @Date 2025-08-27
     */
    void delete(StoreAccountParam param);

    /**
     * 更新
     *
     * @author wp
     * @Date 2025-08-27
     */
    void update(StoreAccountParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wp
     * @Date 2025-08-27
     */
    StoreAccountResult findBySpec(StoreAccountParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wp
     * @Date 2025-08-27
     */
    List<StoreAccountResult> findListBySpec(StoreAccountParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wp
     * @Date 2025-08-27
     */
     LayuiPageInfo findPageBySpec(StoreAccountParam param,String condition);

    StoreAccountResult findListByStoreId(Integer storeId);

    void updateByAccount(StoreAccountParam storeAccountParam);

    StoreAccount getByAccount(Integer account, Integer storeId);
}
